<?php
require_once '../../includes/global.php';
header("Cache-control: private");
header("Content-type: text/html; charset= UTF-8");

//得到配置文件
$wcfg=Dga('wcfg',"web like '".$sitename."' and lg like 'zh'");
$wcfg=json_decode($wcfg[wcfg],true);
$dcfg=Dga('dcfg',"id like '".$_GET[did]."'");
$dcfg=json_decode($dcfg[dcfg],true);
//$nowinfo=Dgs($dcfg[name]," gid='".$_GET[gid]."'");
////Jc($nowinfo);
//foreach($nowinfo as $key =>$tinfo){
//	$info[$tinfo['lg']]=$tinfo;
//}

if($_GET['gid']!=''){
$nowinfo=Dgs($dcfg[name],"gid='".$_GET['gid']."'");
}//gid
$_GET['gid']==''&&$_GET['gid']=Mct();
//内容重现
//echo $_GET['gid'];
if(Jp($nowinfo)){
	foreach($nowinfo as $key =>$tinfo){
	$info[$tinfo[lg]]=$tinfo;
		Jp($tinfo[bdid])&&$_GET[bdid]=$ttinfo[bdid];
		Jp($tinfo[bdsortid])&&$_GET[bdsortid]=$ttinfo[bdsortid];
	}
}


/*
 * 转换地区用
 */
if(1==$_POST['change_area']){
    $area = Dgs('city_area',"del!=1 and lg='{$_SESSION['LG']}' and parent={$_POST['val']}");
    echo <<<EQT
    <select name="{$_POST['change_name']}">
EQT;
    foreach($area as $area_key=>$area_val){
        $select='';
        if($_POST['def_val']!=''||$_POST['def_val']!='undefined'){
            $select=$area_val['id']==$_POST['def_val']?'selected':'';
        }
        echo <<<EQT
            <option {$select} value="{$area_val['id']}">{$area_val['title']}</option>
EQT;
    }
    echo <<<EQT
    </select>
EQT;
    exit;
}
header("Content-type: text/html; charset= UTF-8");

//Jc($wcfg);
//检测多语言屏蔽
if (array_key_exists($_GET['did'], $wcfg['ping'])) {
	$wcfg['num'] = 1;
	$temp = $wcfg['lang'][$wcfg['ping'][$_GET['did']]];
	unset ($wcfg['lang']);
	$wcfg['lang'][$wcfg['ping'][$_GET['did']]] = $temp;
}
/*
 * 当前语言环境
 * -Bic	2009年8月13日 14时29分51秒
 */
!$_GET['lg'] && $_GET['lg']='zh';

//Jc($wcfg);
/*
function updatetag($value,$zd,$i,$num,$lang)
{		$objResponse = new xajaxResponse();
		$objResponse->sEncoding="utf-8";
		$parentid=$value;
		global $dcfg;
		for($i;$i<$num;){
		++$i;
	    $objResponse->addAssign($zd.$i,"innerHTML","<img src=\"/includes/sysimg/loading.gif\"/>");
		$tpzd=Dgs('sss',"parentid ='".$parentid."'");
						$yvalue=array();
						$xvalue=array();
						foreach($tpzd as $tpvalue){
							$yvalue[]=$tpvalue['id'];
							$xvalue[]=$tpvalue['title'];
						}
						$parentid=$yvalue[0];
						if($tpzd!=''){
					$param="onchange=\"xajax_updatetag(this.value,'".$zd."','".$i."','".$num."')\"";
					$bb=Bcs($lang."[".$dcfg['structure'][$zd]['zd'][$i]."]",$yvalue,$xvalue,'',$ydefault='0',$temp['structure'][$zd]['defaultx'][$i],'',$param)."</span>";
					    $objResponse->addAssign($zd.$i,"innerHTML",$bb);
						}else{
					    $objResponse->addAssign($zd.$i,"innerHTML",'');
						}
		//$objResponse->addAlert($i);
		}
		return $objResponse;
}

$printXajax=addXajax(updatetag);
*/

$fileupFs['num']=0;
$XUploadFiles['num']=0;
foreach($dcfg['structure'] as $dkey =>$dvalue){
	/*屏蔽的字段*/
	if($dvalue['ban']==1){continue;}
	switch ($dvalue['ftype']){
		/*大附件上传*/
		//就在这整合啦,不想搞到function里面啦
		case 'fileupFs':
			$fileupFs['num']++;
			$fileupFs['filesize']=$dvalue['filesize'];	//文件大小
			$fileupFs['path']=$dvalue['path'];			//文件路径
			//文件类型
			foreach ($dvalue['format'] as $fmK=>&$fmV){
				if(strrpos($fmV,'*')===false){
					$fmV="*.{$fmV}";
				}
			}
			$fileupFs['name']=$dkey;			//表单名.如:$_FILES['表单名']
			$fileupFs['format']=implode(';',$dvalue['format']);
			$fileupFs['format']=$fileupFs['format']==''?'*.*':$fileupFs['format'];
			$fileupFs['filenum']=$dvalue['filenum'];	//文件数
			$_SESSION['fileupFs']=$fileupFs;
			break;
		/*大附件上传-只支持ie*/
		case 'XUploadFiles':
			$XUploadFiles['num']++;
			break;
	}
}
/*大附件模块只支持一个*/
if ($fileupFs['num']>1 || $XUploadFiles['num']>1){
	die('一个模块只支持一个大附件上传管理!');
}
//$xajax = new xajax();
//$xajax->bDecodeUTF8Input=true;
//
//$xajax->registerFunction("updatetag");
//$xajax->processRequests();
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <?php
      //echo $printXajax;
    ?>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Prosperous JIMU</title>




<link href="../swfupload/css/default.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="../swfupload/swfupload/swfupload.js"></script>
<script type="text/javascript" src="js/swfupload.swfobject.js"></script>
<script type="text/javascript" src="js/fileprogress.js"></script>
<script type="text/javascript" src="js/handlers.js"></script>
<script type="text/javascript" src="/admin/js/jquery.js"></script>



<link  href="../css/mod.css"  rel="stylesheet" type="text/css" />
<script src="/jimu/My97/WdatePicker.js" type="text/javascript"></script>
<link  href="/jimu/lytebox/lytebox.css"  rel="stylesheet" type="text/css" />
<script src="/jimu/lytebox/lytebox.js" type="text/javascript" ></script>




<script language="javascript">
function change_area(form,form_name,val,change_name,def_val){
    change_name = form_name.replace(/\[\w*\]/,"["+change_name+"]");
    var change_parent=jQuery('select[name="'+change_name+'"]').parent();
    change_parent.html('<img src="/admin/img/ajax-loader2.gif" style="margin-top:10px;"/>');
    jQuery.ajax({
        type:'post',
        url:'/admin/mod/c.php?did=<?php echo $_GET['did'];?>',
        data:'change_area=1&val='+val+'&change_name='+change_name+'&def_val='+def_val,
        success:function(D){
            change_parent.html(D);
        }
    });
}
<?php
if($_GET['did'] == 28 && MULTI_CITY){
?>
jQuery(function(){
    change_area('','zh[city]',jQuery('select[name="zh[city]"]').val(),'a',jQuery('select[name="zh[a]"]').val());
});
<?php } ?>

    
var swfu;
window.onload = function(){
	var str1 = "?";
	var links = document.getElementsByTagName("A")||document.all.tags("A");
	var total = links.length;
	for (i = 0; i < total; i++) {
		var s = links[i].href.indexOf(str1);
		if (s > 0) {
			links[i].href = links[i].href + '&from=b&mid=<?php echo $_GET[mid];?>';
		}
		else {
			links[i].href = links[i].href + '?from=b&mid=<?php echo $_GET[mid];?>';
		}
	}

	<?php
	if ($fileupFs['num']!=0){
	?>
	swfu = new SWFUpload({
		// Backend settings
		upload_url: "upload.php",
		file_post_name: "<?php echo $fileupFs['name'];?>",
		post_params : {
			"PHPSESSID": "<?php echo session_id(); ?>"<?php if ($info[$tinfo[lg]][$fileupFs['name']]!=''){?>,"oldname": "<?php echo $info[$tinfo[lg]][$fileupFs['name']]; ?>"<?php }?>
		},

		// Flash file settings
		file_size_limit : "<?php echo floor($fileupFs['filesize']/1000000);?> MB",
		file_types : "<?php echo $fileupFs['format'];?>",			// or you could use something like: "*.doc;*.wpd;*.pdf",
		file_types_description : "All Files",
		file_upload_limit : "0",
		file_queue_limit : "1",

		// Event handler settings
		//swfupload_loaded_handler : swfUploadLoaded,

		file_dialog_start_handler: fileDialogStart,
		file_queued_handler : fileQueued,
		file_queue_error_handler : fileQueueError,
		file_dialog_complete_handler : fileDialogComplete,

		//upload_start_handler : uploadStart,	// I could do some client/JavaScript validation here, but I don't need to.
		upload_progress_handler : uploadProgress,
		upload_error_handler : uploadError,
		upload_success_handler : uploadSuccess,
		upload_complete_handler : uploadComplete,

		// Button Settings
		button_image_url : "XPButtonUploadText_61x22.png",
		button_placeholder_id : "spanButtonPlaceholder",
		button_width: 61,
		button_height: 22,

		// Flash Settings
		flash_url : "../swfupload/swfupload/swfupload.swf",

		custom_settings : {
			progress_target : "fsUploadProgress",
			upload_successful : false
		},

		// Debug settings
		debug: false
	});

	<?php
	}
	?>
}
</script>

<?php
//加载表单验证
$validation=array('18'=>2);
if($validation[$_GET[did]]!=''){
jsform($jsform,$validation[$_GET[did]]);
}else{
jsform($jsform);
}
echo $jsform;
?>
</head>
<body>

<form name="form1" action="u.php" method="post" enctype="multipart/form-data" onsubmit="return false" id="vform">
<div id="container">
<div id="title">
    <ul>
<?php $i=1;
	    foreach($wcfg[lang] as $key =>$lg){
			if($key==$_GET['lg']){
				 $lg_num=$i;
				 $temp1="class=\"selectli".$i."\"";
				 $temp2="class=\"selectspan".$i."\"";
			}else{
				 $temp1="";
				 $temp2="";
			}

		echo "<li id=\"tag".$i."\"><a href=\"#\" onclick=\"switchTag('tag".$i."','content".$i."');this.blur();\" ".$temp1."><span ".$temp2.">".$dcfg['title']."【".$lg."】</span></a></li>";
		$i++;
		}
?>
    </ul>
<script type="text/javascript">
<!--
function switchTag(tag,content){
	var allnum=<?php echo $wcfg[num];?>;
	for(i=1; i <= allnum; i++)
	{
		if ("tag"+i==tag)
		{
			document.getElementById(tag).getElementsByTagName("a")[0].className="selectli"+i;
			document.getElementById(tag).getElementsByTagName("a")[0].getElementsByTagName("span")[0].className="selectspan"+i;
		}else{
			document.getElementById("tag"+i).getElementsByTagName("a")[0].className="";
			document.getElementById("tag"+i).getElementsByTagName("a")[0].getElementsByTagName("span")[0].className="";
		}
		if ("content"+i==content)
		{
			document.getElementById(content).className="";
		}else{
			document.getElementById("content"+i).className="hidecontent";
		}
		document.getElementById("content").className=content;
	}
}
-->
</script>
  </div>
  <div id="content" class="content<?php echo $lg_num; ?>">
<?php

//---
$xhgs=1;
	foreach($wcfg[lang] as $lgk =>$lgv){
		$tmp_class='';
		if($lgk!=$_GET['lg']){
			$tmp_class="class='hidecontent'";
		}
		echo "<div id=\"content".$xhgs."\" {$tmp_class} >";

		/*bic*/
		$did=$_GET['did'];
		$_REQUEST['bdid']!=''?($did.='&bdid='.$_REQUEST['bdid']):'';
		$_GET['bdb']!=''?($did.='&bdb='.$_GET['bdb']):'';

		echo "<a href='l.php?did=".$did."&from=b&mid={$_GET['mid']}&{$_GET[pagename]}={$_GET[$_GET[pagename]]}&lg={$lgk}' title='列表【LIST】'><img src='../img/table.gif' border='0' ait='列表【LIST】'></a>    <a href='#' onclick=\"location.reload();\" title='刷新【REFRESH】'><img src='../img/page_refresh.gif' border='0' ait='刷新【REFRESH】'></a>".(($_SERVER['HTTP_REFERER']&&!Sf('index.php',$_SERVER['HTTP_REFERER']))?("<a href='".$_SERVER['HTTP_REFERER']."'  title='后退【BACK】'><img src='../img/arrow_rotate_anticlockwise.png' border='0' ait='后退【BACK】'></a>"):(""))."";

		echo "<fieldset><legend>".$lgk."[".$lgv."]=>".$dcfg[title]."</legend>";
		//内容开始
		?>
      <table width="100%" border="1" align="center" cellpadding="0" cellspacing="0" bordercolor="#B1CDE6"  style="border-collapse: collapse">
          <label>更新当前语言:<input name="update_lang[]" type="checkbox" checked value="<?php echo $lgk; ?>" style="border:0;width:12px;height:12px;"/></label>
		<?php
		//Jc($dcfg[structure]);
		foreach($dcfg[structure] as $dkey =>$dvalue){
			/*屏蔽的字段*/
			if($dvalue['ban']==1){continue;}
			if($dvalue['ftype']=='bind'){continue;}
			
			switch ($dvalue[ftype]){
				case 'text':
				case 'my97':{
				?>
				<tr>
            <td height="30" width="19%" align="right" class="title"><?php text($dkey,$lgk,0,0);?>：</td>
            <td width="81%" height="30" align="left" class=con>
				<?php
					($dvalue['change']=='date'||$dvalue['change']=='datetime'||$dvalue['change']=='my97')?$change=$dvalue['change']:$change='';
					text($dkey,$lgk,1,0,$info[$lgk][$dkey],'dcfg',$change);
				?></td>
              </tr>
                 <?php
				 break;
				}
				case 'md5str':{
				?>
				<tr>
            <td height="30" width="19%" align="right" class="title"><?php md5str($dkey,$lgk,0,0);?>：</td>
            <td width="81%" height="30" align="left" class=con>
				<?php
					md5str($dkey,$lgk,1,0,$info[$lgk][$dkey]);
				?></td>
              </tr>
                 <?php
				 break;
				}
				case 'phpfile':{
				?>
				<tr>
            <td height="30" width="19%" align="right" class="title"><?php phpfile($dkey,$lgk,0,0);?>：</td>
            <td width="81%" height="30" align="left" class=con>
				<?php
					phpfile($dkey,$lgk,1,0,$_GET['gid']);
				?></td>
              </tr>
                 <?php
				 break;
				}
				case 'fileup':{
				?>
				<tr>
            <td height="30" width="19%" align="right" class="title"><?php fileup($dkey,$lgk,0,0);?>：</td>
            <td width="81%" height="30" align="left" class=con>
				<?php
					fileup($dkey,$lgk,1,0,$info[$lgk][$dkey]);

				?></td>
              </tr>
                 <?php
				 break;
				}
				case 'fileupBic':{
				?>
				<tr>
            <td height="30" width="19%" align="right" class="title"><?php fileup($dkey,$lgk,0,0);?>：</td>
            <td width="81%" height="30" align="left" class=con>
				<?php
					fileup($dkey,$lgk,1,0,$info[$lgk][$dkey]);

				?></td>
              </tr>
                 <?php
				 break;
				}
				case 'fileupFs':{
					//Jc($dkey);
					//Jc($dvalue);
					//Jc($info[$lgk][$dkey]);
				?>
				<tr>
            <td height="30" width="19%" align="right" class="title"><?php fileup($dkey,$lgk,0,0);?>：</td>
            <td width="81%" height="30" align="left" class=con>
						<div>
							<div>
								<input value="" type="text" id="txtFileName" disabled="true" style="border: solid 1px; background-color: #FFFFFF;" />
								<span id="spanButtonPlaceholder"></span>
								(<?php echo floor($dvalue['filesize']/1000000);?> MB max)
								<?php
								if ($info[$lgk][$dkey]!=''){
									echo "<a href='{$dvalue['path']}{$info[$lgk][$dkey]}' style='margin-left:30px;' target='_blank'>下载已上传的文件</a>";
								}
								?>
							</div>
							<div class="flash" id="fsUploadProgress">
								<!-- This is where the file progress gets shown.  SWFUpload doesn't update the UI directly.
											The Handlers (in handlers.js) process the upload events and make the UI updates -->
							</div>
							<input type="hidden" name="zh[<?php echo $dkey;?>]" id="hidFileID" value="<?php echo $info[$lgk][$dkey];?>" />
							<!-- This is where the file ID is stored after SWFUpload uploads the file and gets the ID back from upload.php -->
						</div>
				</td>
              </tr>
                 <?php
				 break;
				}
				case 'XUploadFiles':{
					//Jc($dkey);
					//Jc($dvalue);
					//Jc($info[$lgk][$dkey]);
					$_SESSION['xu']['AllowExt']=$dvalue['format']['AllowExt'];
					$_SESSION['xu']['DenyExt']=$dvalue['format']['DenyExt'];
					$_SESSION['xu']['MaxFileCount']=$dvalue['MaxFileCount'];
					$_SESSION['xu']['MaxTotalSize']=$dvalue['MaxTotalSize'];
					$_SESSION['xu']['path']=$dvalue['path'];
					$_SESSION['xu']['OldFile']=$info[$lgk][$dkey];
					function xu_file($f){
						global $dvalue;
						$tmp=explode('#',$f);
						foreach($tmp as $k=>$v){
							$num=$k+1;
							if($v!=''){
								echo "<a href='/uploads/{$dvalue['path']}/{$v}' target='_blank' style='margin:0 13px;'>文件[{$num}]</a>";
							}
						}
					}

				?>

				<script language="javascript">
				function xu_check()
				{
					var obj = xu_find();
					if (obj != null)
					{
						var str = form1.textbox1.value;
						if (str.indexOf(":") > 0) // 检查是否已经上传过文件
						{
							//xu_subpath(form1.subpath.value);
							str = obj.uploadfile();
						}
						document.getElementById('xu_result').value=str.replace("\n","#");
						document.getElementById('xu_msg').innerHTML='文件上传成功,请提交本页面数据,否则文件无法保存!';
						if (str != "") return true;
					}
					document.getElementById('xu_msg').innerHTML='';
					return false;
				}
				</script>
				<tr>
		            <td height="30" width="19%" align="right" class="title"><?php fileup($dkey,$lgk,0,0);?>：</td>
		            <td width="81%" height="30" align="left" class=con>
						<div>
							<div><a href="/admin/mod/activex/xuploadfiles.cab" target="_blank" style="color:red;padding:3px;">点击下载大附件上传客户端[如不能下载,请用 "右键->另存为"]</a></div>
							<span style="DISPLAY: none">
							<object id="uploadid" classid="clsid:18B9E4BF-F21F-46B9-AD50-5CA62145426A" codebase="/admin/mod/activex/xuploadfiles.cab">
								<param name="Action" value="/admin/mod/xuploadfiles.php">
								<param name="Bind" value="textbox1">
								<param name="AllowExt" value="<?php echo $dvalue['format']['AllowExt'];?>">
								<param name="DenyExt" value="<?php echo $dvalue['format']['DenyExt'];?>">
								<param name="MaxFileCount" value="<?php echo $dvalue['MaxFileCount'];?>">
								<param name="MaxTotalSize" value="<?php echo $dvalue['MaxTotalSize'];?>">
								<param name="SubPath" value="<?php echo $dvalue['path'];?>">
							</object>
							<script language="javascript" src="js/xuploadfiles.js"></script>
							</span>
							<textarea name="textbox1" rows="1" cols="50" wrap="off" readonly="readonly" id="textbox1" style="OVERFLOW-X: hidden">
							</textarea>
							<div>
								<span><input onClick="uploadid.selectfile<?php echo $dvalue['MaxFileCount']>1?'s':'';?>();" type="button" value="浏览..." /></span>
								<span><input onClick="xu_check()" type="button" value="上传" /></span>
								<span id="xu_msg" style="color:green;font-weight:bold;margin:0 5px;"></span>
								<span><?php echo xu_file($info[$lgk][$dkey]);?></span>
							</div>
							<input type="hidden" name="zh[<?php echo $dkey;?>]" id="xu_result" value="<?php echo $info[$lgk][$dkey];?>" />
							<!-- This is where the file ID is stored after SWFUpload uploads the file and gets the ID back from upload.php -->
						</div>
					</td>
              </tr>
                 <?php
				 break;
				}

				case 'hide':{
				?>
				<tr>
            <td height="30" width="19%" align="right" class="title"><?php hide($dkey,$lgk,0,0);?>：</td>
            <td width="81%" height="30" align="left" class=con>
				<?php
					hide($dkey,$lgk,1,0,$info[$lgk][$dkey]);
				?></td>
              </tr>
                 <?php
				 break;
				}
				case 'select':{
				?>
				<tr>
            <td height="30" width="19%" align="right" class="title"><?php select($dkey,$lgk,0,0);?>：</td>
            <td width="81%" height="30" align="left" class=con>
				<?php
					if($info[$lgk][$dkey]){
					$info[$lgk][$dkey]=explode(',',$info[$lgk][$dkey]);
					}

                    /**
                     * 兼容bdid字段用！
                     * 
                     */
                    if($dkey=='bdid'){
                        $info[$lgk][$dkey]=$_GET['bdid'];
                    }

					select($dkey,$lgk,1,0,$info[$lgk][$dkey]);
				?></td>
              </tr>
                 <?php
				 break;
				}
				case 'checkbox':{
				?>
				<tr>
            <td height="30" width="19%" align="right" class="title"><?php checkbox($dkey,$lgk,0,0);?>：</td>
            <td width="81%" height="30" align="left" class=con>
				<?php
					if($info[$lgk][$dkey]){
					$info[$lgk][$dkey]=explode(',',$info[$lgk][$dkey]);
					}
					checkbox($dkey,$lgk,1,0,$info[$lgk][$dkey]);
				?></td>
              </tr>
                 <?php
				 break;
				}
				case 'dcheckbox':{
				?>
				<tr>
            <td height="30" width="19%" align="right" class="title"><?php dcheckbox($dkey,$lgk,0,0);?>：</td>
            <td width="81%" height="30" align="left" class=con valign="middle" style="vertical-align:middle">
				<?php
					dcheckbox($dkey,$lgk,1,0,$info[$lgk][$dkey]);
				?></td>
              </tr>
                 <?php
				 break;
				}
				case 'radio':{
				?>
				<tr>
            <td height="30" width="19%" align="right" class="title"><?php radio($dkey,$lgk,0,0);?>：</td>
            <td width="81%" height="30" align="left" class=con>
				<?php
					radio($dkey,$lgk,1,0,$info[$lgk][$dkey]);
				?></td>
              </tr>
                 <?php
				 break;
				}
				case 'textarea':{
				?>
				<tr>
            <td height="30" width="19%" align="right" class="title"><?php textarea($dkey,$lgk,0,0);?>：</td>
            <td width="81%" height="30" align="left" class=con>
				<?php
					textarea($dkey,$lgk,1,0,$info[$lgk][$dkey]);
				?></td>
              </tr>
                 <?php
				 break;
				}
				case 'ubb':{
				?>
				<tr>
            <td height="30" width="19%" align="right" class="title"><?php ubb($dkey,$lgk,0,0);?>：</td>
            <td width="81%" height="30" align="left" class=con>
				<?php
					ubb($dkey,$lgk,1,0,$info[$lgk][$dkey]);
				?></td>
              </tr>
                 <?php
				 break;
				}
				case 'bind':{
				?>
				<tr>
            <td height="30" width="19%" align="right" class="title"><?php echo  $dvalue['COMMENT']?>：</td>
            <td width="81%" height="30" align="left" class=con>
				<?php
					echo "<a href='c.php?did=".$dvalue['did']."&bdb=".$_GET['did']."&bdid=".$_GET['gid']."&comment=".urlencode($dvalue['COMMENT'])."' title='添加".$dvalue['COMMENT']."【AddBind】'><img src='../img/image_new.gif' border='0' ait='添加".$dvalue['COMMENT']."【AddBind】'></a> <a href='l.php?did=".$dvalue['did']."&bdb=".$_GET['did']."&bdid=".$_GET['gid']."&comment=".urlencode($dvalue['COMMENT'])."' title='列表".$dvalue['COMMENT']."【Listbind】'><img src='../img/image.gif' border='0' ait='列表".$dvalue['COMMENT']."【Listbind】'></a>  ";
				?></td>
              </tr>
                 <?php
				 break;
				}
				case 'dselect':{
				?>
				<tr>
            <td height="30" width="19%" align="right" class="title"><?php dselect($dkey,$lgk,0,0);?>：</td>
            <td width="81%" height="30" align="left" class=con>
				<?php
				//Ja($info[$lgk][$dkey]);
					if($_GET['dsid']!=''){
					dselect($dkey,$lgk,1,0,$_GET['dsid']);
					}else{
					dselect($dkey,$lgk,1,0,$info[$lgk][$dkey]);
					}
				?></td>
              </tr>
                 <?php
				 break;
				}
				case 'ssx':{
				?>
				<tr>
            <td height="30" width="19%" align="right" class="title"><?php ssx($dkey,$lgk,0,0);?>：</td>
            <td width="81%" height="30" align="left" class=con>
				<?php
				//Ja($info[$lgk][$dkey]);
					$ti=1;
					foreach($dvalue['zd'] as $xxskey){
					$tempssx[$ti]=$info[$lgk][$xxskey];
					$ti++;
					}
					//Jc($tempssx);
					ssx($dkey,$lgk,1,0,$tempssx);
				?></td>
              </tr>
                 <?php
				 break;
				}
			}
		}

		?>

		</table></fieldset>
		<?php
		$xhgs++;
		echo "</div>";
		}
	?>
        </div>
    <div  align="center"><BR />
     <input type="submit" value="提交"  id="btnSubmit" onclick="if(document.getElementById('txtFileName').value!=''){doSubmit(event);return false;}"/></div><br />
     <input name="op" type="hidden"  value="<?php echo $_REQUEST[op];?>"   />
     <input name="did" type="hidden"  value="<?php echo $_REQUEST[did];?>"   />
     <input name="from" type="hidden"  value="b"   />
     <input name="mid" type="hidden"  value="<?php echo $_REQUEST[mid];?>"   />
     <input name="sortid" type="hidden"  value="<?php echo $_REQUEST[did];?>"   />
</form>

</body>
</html>
